package hng.enums;

import lombok.Getter;

public enum  BizCodeEnum {

    /**
     * 验证码
     */
    CODE_TO_ERROR(240001,"接收号码不合规"),
    CODE_LIMITED(240002,"验证码发送过快"),
    CODE_ERROR(240003,"验证码错误"),
    CODE_CAPTCHA_ERROR(240101,"图形验证码错误"),

    /**
     * 账号
     */

    ACCOUNT_REPEAT(250001,"账号已经存在"),
    ACCOUNT_UNREGISTER(250002,"账号不存在"),
    ACCOUNT_PWD_ERROR(250003,"账号或者密码错误"),
    ACCOUNT_UNLOGIN(401,"账号未登录"),

    NO_ADMIN(400,"权限不足"),
    ACCOUNT_REGIST_SUCCESS(250005,"注册成功，请前往登录！"),
    ACCOUNT_CHANGE_SUCCESS(250006,"更改用户密码成功！"),
    ACCOUNT_CHANGE_ERROR(250007,"更改用户密码失败！"),
    ACCOUNT_UPDATE_SUCCESS(250008,"用户信息更新成功！"),
    ACCOUNT_UPDATE_ERROR(250009,"用户信息更新失败！"),
    ACCOUNT_BIND_WEICHAT(250010,"您所输入的微信账号已经绑定过了！"),
    ACCOUNT_LGIN_ANYWHERE(250011,"您的账号已在异地登录！"),

    ACCOUNT_INFO_LIST_ERROR(250012,"查询用户信息列表失败"),
    ACCOUNT_INFO_UPDATE_SUCCESS(250013,"更新用户信息成功"),
    ACCOUNT_INFO_UPDATE_ERROR(250014,"更新用户信息失败"),
    ACCOUNT_NOT_AUTH(250015,"权限不足，请教师或管理员登录"),

    /**
     * 题库模块
     */
    EXAM_LIBRARY_ERROR(700101, "获取用户已购买题库失败"),
    EXAM_CDKEY_INVALID(700102, "兑换码无效"),
    EXAM_CDKEY_USE(700103, "兑换码已被使用"),
    EXAM_CDKEY_SUCCESS(700104, "兑换成功"),
    EXAM_CDKEY_SERROR(700105, "兑换失败"),
    EXAM_TEST_NOT_BUY(700105, "该题库未购买"),
    EXAM_TEST_QUESTION_LIST_ERROR(7000106, "获取题库题目失败"),
    EXAM_TEST_ANSWER_ERROR(7000107, "获取答案和解析失败"),
    EXAM_CATEGORY_ERROR(7000108, "获取题库分类失败"),
    EXAM_TEST_INSERT_ERROR(7000109, "插入用户答案失败"),
    EXAM_TEST_TIEM_NULL(7000110, "用户题库学习时间不可为空！"),
    EXAM_TEST_ID_NULL(7000111, "题库题目不存在！"),
    EXAM_TEST_FEEDBACK_SUCCESS(7000112, "提交反馈成功！"),
    EXAM_TEST_FEEDBACK_ERROR(7000113, "提交反馈失败！"),
    EXAM_TEST_REPUT_ERROR(7000114, "不可以重复提交题目！"),
    EXAM_CDKEY_RE_ERROR(700115, "不可重复兑换"),
    EXAM_FEEDBACK_ERROR(700116, "提交反馈失败！"),
    HHH(10000000,"");

    @Getter
    private String message;

    @Getter
    private int code;

    private BizCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }



}
